/* 菜单隐藏 beign */
.hide-sidebar {
  .sidebar {
    width: 64px;
    .logo-box {
      >font {
        display: none;
      }
    }
  }
  .el-header,
  .tags{
    padding-left: 64px !important;
  }
  .content-box {
    padding-left: 64px !important;
  }
}
/* 菜单隐藏 end */

/* wrap begin*/
.header-tags {
  position: fixed;
  z-index: 20;
  width: 100%;
  height: var(--size-head-height);
  background-color: var(--theme-header-background);
  .el-header,
  .tags{
    padding-left: 260px;
    transition: padding-left .3s;
  }
}
.content-box {
  position: relative;
  height: calc(100vh - var(--size-head-height));
  padding-left: 260px;
  margin-top: var(--size-head-height);
  transition: padding-left .3s;
}
/* wrap end*/

/* sidebar begin */
.sidebar {
  position: fixed;
  display: block;
  top: 0px;
  left: 0;
  bottom: 0;
  width: 260px;
  z-index: 21;
  background-color: var(--theme-sidebar-background);
  transition: width .3s;
  .logo-box {
    position: relative;
    z-index: 1;
    height: var(--size-logo-height);
    line-height: var(--size-logo-height);
    box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    >img{
      float: left;
      margin: 10px;
      height: calc(var(--size-logo-height) - 20px);
    }
    >font{
      color: var(--theme-system-name-color);
      font-weight: 600;
    }
  }
  >.el-icon-s-fold,
  >.el-icon-s-unfold {
    position: absolute;
    color: var(--theme-header-color);
    right: -40px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
  }
}
.el-menu {
  border: none;
  background: var(--theme-sidebar-background);
  [class^=el-icon-] {
    margin-right: 0;
    color: inherit;
  }
  .el-menu-item:focus {
    background: var(--theme-sidebar-background);
  }
  .el-menu-item:hover,
  .el-submenu__title:hover{
    background-color: var(--theme-sidebar-background-hover);
  }
}
.menu-scroll {
  height: calc(100vh - var(--size-logo-height));
  .el-scrollbar {
    height: 100%;
  }
  .el-scrollbar__wrap {
    overflow-x: hidden;
  }
}
/* sidebar end */

/* header  begin*/
.header {
  height: var(--size-head-height-user);
  line-height: var(--size-head-height-user);
  font-size: .9rem;
  color: var(--theme-header-color);
  box-shadow: 0px 2px 12px 0px rgba(0, 0, 0, 0.2);
  .header-user {
    float: right;
    font-size: inherit;
    position: relative;
    .el-dropdown {
      color: inherit;
    }
    .user-pic {
      position: relative;
      top: 12px;
      left: 10px;
      width: 32px;
      height: 32px;
      border-radius: 50%;
    }
  }
}
/* header end*/

/* tags begin */
.tags {
  position: relative;
  height: var(--size-head-height-tag);
  line-height: var(--size-head-height-tag);
  font-size: .8rem;
}
.tags-scroll {
  display: inline-block;
  width: calc(100% - var(--size-head-height-tag));
}
.tags-li {
  position: relative;
  display: inline-block;
  padding: 0px 16px;
  color: var(--theme-header-color);
  &.active{
    color: var(--theme-sidebar-color-active);
    border-bottom: 2px solid var(--theme-sidebar-color-active);
  }
  &:hover .el-icon-close {
    display: inline-block;
  }
  .el-icon-close {
    position: absolute;
    display: none;
    font-weight: bold;
    color: var(--theme-header-color);
    margin-left: 4px;
    top: 11px;
    cursor: pointer;
  }
}
.tags-btn {
  float: right;
  width: 32px;
  text-align: center;
  box-shadow: 0px 2px 12px 0px rgb(0 0 0 / 20%);
  >.el-dropdown-link {
    display: inline-block;
    width: 100%;
    color: var(--theme-header-color);
  }
  .tags-menu {
    padding: 5px 0;
    .el-dropdown-menu__item {
      font-size: .8rem;
      padding: 0 12px;
    }
  }
}
/* tags end */
